package cn.wps.moffice;

import android.app.Application;
import android.os.Environment;

public class OfficeApp extends Application {

	private static OfficeApp sInstance;
	
	public String sdcardPath = Environment.getExternalStorageDirectory().getPath();//SD卡路径

	@Override
	public void onCreate() {
		super.onCreate();
		sInstance = this;
	}

	public static OfficeApp getInstance() {
		return sInstance;
	}
	
	/**
	 * 获取属于支持doc文档类型列表
	 * @return
	 */
	public String[] getDocFileType()
	{
		return new String[] { "wps", "wpt", "doc", "dot", "docx", "dotx", "docm", "dotm", "rtf" };
	}
	
	/**
	 * 获取属于支持xsl文档类型列表
	 * @return
	 */
	public String[] getXslFileType()
	{
		return new String[] { "et", "ett", "xls", "xlsx", "xlt", "xltx", "csv", "xlsm", "xltm", "xlsb"};
	}
	
	/**
	 * 获取属于支持txt文档类型列表
	 * @return
	 */
	public String[] getTxtFileType()
	{
		return new String[] { "txt" };
	}
	
	/**
	 * 获取属于其他文档类型列表
	 * @return
	 */
	public String[] getOtherFileType()
	{
		return new String[] { "log", "lrc", "c", "cpp", "h", "asm", "s", "java", "asp", "bat", "bas", "prg", "cmd" };
	}
	
	/**
	 * 获取属于pdf文档类型列表
	 * @return
	 */
	public String[] getPdfFileType()
	{
		return new String[] { "pdf" };
	}
	
	/**
	 * 获取属于ppt文档类型列表
	 * @return
	 */
	public String[] getPptFileType()
	{
		return new String[] { "ppt", "pot", "pps", "dps", "dpt", "pptx", "potx", "ppsx", "pptm", "potm", "ppsm" };
	}

}
